Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtp: lock more fields from rtcp_sess #1039

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Jan 3, 2024

We need to lock more fields of rtcp_sess.

This was found because of

commit 22bb762de43a895c57984f20dc1771f7529150ee
Author: Christian Spielberger <[email protected]>
Date:   Wed Jan 3 14:53:23 2024 +0100

    test: call - concurrency test for audio_debug()

This PR removes the shortly added lock for rtcp_source. Instead the lock of rtcp_sess is used over larger code parts.

The concurrency test in baresip was intensified in order to find concurrency problems and possible deadlocks with a higher chance.

commit e267bb2d1655d2b93cbfce21648de47847bf7912 (HEAD -> rx_thread_activate, origin/rx_thread_activate)
Author: Christian Spielberger <[email protected]>
Date:   Thu Jan 4 14:09:34 2024 +0100

    test: call - intensify RTCP/audio_debug concurrency test

@cspiel1 cspiel1 added the RX thread RX real-time thread label Jan 3, 2024
@cspiel1 cspiel1 force-pushed the rtp_lock_rtp_sess branch from 6bca09c to e315ad9 Compare January 4, 2024 09:03
@cspiel1 cspiel1 force-pushed the rtp_lock_rtp_sess branch from c8bfa9d to c2e4edd Compare January 4, 2024 12:55
@cspiel1 cspiel1 marked this pull request as ready for review January 4, 2024 13:09
@cspiel1 cspiel1 changed the title rtp: lock more fields from rtcp_sess rx thread activate Jan 4, 2024
@cspiel1
Copy link
Collaborator Author

cspiel1 commented Jan 4, 2024

Need to rename the PR to match the name of baresip/baresip#2828. It should use the re branch of this PR.

@alfredh
Copy link
Contributor

alfredh commented Jan 5, 2024

this looks good.. okay to merge ..

@sreimers sreimers changed the title rx thread activate rtp: lock more fields from rtcp_sess Jan 5, 2024
@sreimers sreimers merged commit b57a240 into baresip:main Jan 5, 2024
35 checks passed
@cspiel1 cspiel1 deleted the rtp_lock_rtp_sess branch January 8, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RX thread RX real-time thread
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants